﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RestfullTest
{
    public partial class FrmHelp : Form
    {
        private static FrmHelp Self { set; get; }

        public FrmHelp()
        {
            InitializeComponent();

            this.Icon = FrmRestfull.Self.Icon;
        }

        private void FrmHelp_Load(object sender, EventArgs e)
        {
            rtb.Rtf = Properties.Resources.HelpContent;
        }

        public static void Print()
        {
            if (Self == null) Self = new FrmHelp();
            if (Self.IsDisposed) Self = new FrmHelp();
            Self.Show();
            if (Self.WindowState == FormWindowState.Minimized) Self.WindowState = FormWindowState.Normal;
            Self.Activate();
        }
    }
}
